<template>
  <div id="takebacklist">


          <el-table :data="datalist" style="width: 100%" :height="dtheight" :header-cell-style="{background:'#4F81BC',color:'white'}"
           :row-class-name="tableRowClassName"  :border="true">


                <el-table-column label="设置时间"  align='center' >
                    <template slot-scope="scope">
                        <span >{{ scope.row.starttime }}</span>
                    </template>
                </el-table-column>
                <el-table-column label="中奖系数"  align='center' >
                    <template slot-scope="scope">
                        <span >{{ scope.row.win_price_limit_scale }}</span>
                    </template>
                </el-table-column>
                <el-table-column label="中奖推荐"  align='center' >
                    <template slot-scope="scope">
                        <span >{{ scope.row.recommend }}</span>
                    </template>
                </el-table-column>
                <el-table-column label="奖池人数"  align='center' >
                    <template slot-scope="scope">
                        <span >{{ scope.row.reward_number }}</span>
                    </template>
                </el-table-column>
                <el-table-column label="可用人数"  align='center' >
                    <template slot-scope="scope">
                        <span >{{ scope.row.can_user_number }}</span>
                    </template>
                </el-table-column>
                <el-table-column label="设置人数"  align='center' >
                    <template slot-scope="scope">
                        <span >{{ scope.row.setting_number }}</span>
                    </template>
                </el-table-column>
            </el-table>

   </div>
</template>

<script>

export default {
   name: 'takebacklist',
   props:{
      datalist:{
        //type:Array,
       default:()=>[]
     },
  },
  data () {
    return {
        dtheight:'500',  //窗口高度



    }
  },
   components:{

  },
  created(){
     this.dtheight = window.innerHeight - 295

  },
  mounted (){

  },
  methods: {

      go_but1(row){
          this.$router.push({
          path: '/index/reorder',
          query: {
            name:row.telphone,
            id:row.uid,
          }
        })
      },
      go_but2(row){
          this.$router.push({
          path: '/index/jdcoupons',
          query: {
            name:row.telphone,
            id:row.uid,
          }
        })
      },



  }
}
</script>


<style scoped>

</style>
